package edu.fmi.st.epf.types.skill.ui.extension;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.epf.library.edit.ILibraryItemProvider;
import org.eclipse.epf.uma.ContentPackage;

import edu.fmi.st.epf.types.skill.common.util.SkillHelper;
import edu.fmi.st.epf.types.skill.ui.provider.SkillsCategoryItemProvider;
import eu.tanov.epf.itemprovider.extension.AbstractExtendedItemProvider;
import eu.tanov.epf.itemprovider.extension.ExtendedItemProvider;

public class SkillsExtendedItemProvider extends AbstractExtendedItemProvider
		implements ExtendedItemProvider {

	public SkillsExtendedItemProvider() {
		super(SkillHelper.SKILLS_PATH);
	}

	@Override
	protected ILibraryItemProvider createProvider(
			AdapterFactory adapterFactory, ContentPackage contentPkg,
			String name) {
		return new SkillsCategoryItemProvider(adapterFactory, contentPkg, name);
	}

	@Override
	protected String getCategoryLocalizedName() {
		return "Skills";
	}

	public int position() {
		return 110;
	}
}
